package pl.zuiol.games.poker.util;

import pl.zuiol.games.poker.util.Card;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Damian
 * Date: 15.05.11
 * Time: 23:33
 */
public class Hand implements Serializable{

    private List<Card> hand = null;

    public Hand(Card card1, Card card2){
        hand = new ArrayList<Card>();
        hand.add(card1);
        hand.add(card2);
    }

    public List<Card> getCards(){
        return hand;
    }

    public String toString(){
        return hand.get(0).toString() + ", " + hand.get(1).toString();
    }
}
